package com.wenwu.common.bean;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class RelicsMRepair extends FileUtils implements Serializable{

	private static final long serialVersionUID = 2967690172931730075L;

	private Integer integrityId;

    private Integer mRelicsId;

    private String relicsName;

    private String oriIntegrityLevel;

    private String oriIntegrityStatus;

    private Date oriEnrollTime;

    private String curIntegrityLevel;

    private String curIntegrityStatus;

    private Date curEnrollTime;

    private String damagedReason;

    private String saveStatus;

    private String saveCondition;

    private String saveEnvironment;

    private String disease;

    private Date protectTime;

    private String protectMeasure;

    private String protectType;

    private String operator;

    private String protectIntell;

    private String protectLmo;

    private String protectLogs;

    private String append1;

    private String append2;

    private String append3;
    
    /**
     * 信息库编号，关联查询
     */
    private String mRelicsNo;
    

    public String getmRelicsNo() {
		return mRelicsNo;
	}

	public void setmRelicsNo(String mRelicsNo) {
		this.mRelicsNo = mRelicsNo;
	}

	public Integer getIntegrityId() {
        return integrityId;
    }

    public void setIntegrityId(Integer integrityId) {
        this.integrityId = integrityId;
    }

    public Integer getmRelicsId() {
        return mRelicsId;
    }

    public void setmRelicsId(Integer mRelicsId) {
        this.mRelicsId = mRelicsId;
    }

    public String getRelicsName() {
        return relicsName;
    }

    public void setRelicsName(String relicsName) {
        this.relicsName = relicsName;
    }

    public String getOriIntegrityLevel() {
        return oriIntegrityLevel;
    }

    public void setOriIntegrityLevel(String oriIntegrityLevel) {
        this.oriIntegrityLevel = oriIntegrityLevel;
    }

    public String getOriIntegrityStatus() {
        return oriIntegrityStatus;
    }

    public void setOriIntegrityStatus(String oriIntegrityStatus) {
        this.oriIntegrityStatus = oriIntegrityStatus;
    }

    public String getOriEnrollTime() {
    	if(oriEnrollTime ==null)
			return null;
    	try {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			return sdf.format(oriEnrollTime);
		} catch (Exception e) {
			return null;
		}
    }

    public void setOriEnrollTime(String oriEnrollTime) {
    	try {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			this.oriEnrollTime = sdf.parse(oriEnrollTime);
		} catch (Exception e) {
		}
        //this.oriEnrollTime = oriEnrollTime;
    }

    public String getCurIntegrityLevel() {
        return curIntegrityLevel;
    }

    public void setCurIntegrityLevel(String curIntegrityLevel) {
        this.curIntegrityLevel = curIntegrityLevel;
    }

    public String getCurIntegrityStatus() {
        return curIntegrityStatus;
    }

    public void setCurIntegrityStatus(String curIntegrityStatus) {
        this.curIntegrityStatus = curIntegrityStatus;
    }

    public String getCurEnrollTime() {
    	if(curEnrollTime ==null)
			return null;
    	try {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			return sdf.format(curEnrollTime);
		} catch (Exception e) {
			return null;
		}
        //return curEnrollTime;
    }

    public void setCurEnrollTime(String curEnrollTime) {
    	try {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			this.curEnrollTime = sdf.parse(curEnrollTime);
		} catch (Exception e) {
		}
        //this.curEnrollTime = curEnrollTime;
    }

    public String getDamagedReason() {
        return damagedReason;
    }

    public void setDamagedReason(String damagedReason) {
        this.damagedReason = damagedReason;
    }

    public String getSaveStatus() {
        return saveStatus;
    }

    public void setSaveStatus(String saveStatus) {
        this.saveStatus = saveStatus;
    }

    public String getSaveCondition() {
        return saveCondition;
    }

    public void setSaveCondition(String saveCondition) {
        this.saveCondition = saveCondition;
    }

    public String getSaveEnvironment() {
        return saveEnvironment;
    }

    public void setSaveEnvironment(String saveEnvironment) {
        this.saveEnvironment = saveEnvironment;
    }

    public String getDisease() {
        return disease;
    }

    public void setDisease(String disease) {
        this.disease = disease;
    }

    public String getProtectTime() {
    	if(protectTime ==null)
			return null;
    	try {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			return sdf.format(protectTime);
		} catch (Exception e) {
			return null;
		}
        //return protectTime;
    }

    public void setProtectTime(String protectTime) {
    	try {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			this.protectTime = sdf.parse(protectTime);
		} catch (Exception e) {
		}
        //this.protectTime = protectTime;
    }

    public String getProtectMeasure() {
        return protectMeasure;
    }

    public void setProtectMeasure(String protectMeasure) {
        this.protectMeasure = protectMeasure;
    }

    public String getProtectType() {
        return protectType;
    }

    public void setProtectType(String protectType) {
        this.protectType = protectType;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getProtectIntell() {
        return protectIntell;
    }

    public void setProtectIntell(String protectIntell) {
        this.protectIntell = protectIntell;
    }

    public String getProtectLmo() {
        return protectLmo;
    }

    public void setProtectLmo(String protectLmo) {
        this.protectLmo = protectLmo;
    }

    public String getProtectLogs() {
        return protectLogs;
    }

    public void setProtectLogs(String protectLogs) {
        this.protectLogs = protectLogs;
    }

    public String getAppend1() {
        return append1;
    }

    public void setAppend1(String append1) {
        this.append1 = append1;
    }

    public String getAppend2() {
        return append2;
    }

    public void setAppend2(String append2) {
        this.append2 = append2;
    }

    public String getAppend3() {
        return append3;
    }

    public void setAppend3(String append3) {
        this.append3 = append3;
    }

	@Override
	public String toString() {
		return "RelicsMRepair [integrityId=" + integrityId + ", mRelicsId="
				+ mRelicsId + ", relicsName=" + relicsName
				+ ", oriIntegrityLevel=" + oriIntegrityLevel
				+ ", oriIntegrityStatus=" + oriIntegrityStatus
				+ ", oriEnrollTime=" + oriEnrollTime + ", curIntegrityLevel="
				+ curIntegrityLevel + ", curIntegrityStatus="
				+ curIntegrityStatus + ", curEnrollTime=" + curEnrollTime
				+ ", damagedReason=" + damagedReason + ", saveStatus="
				+ saveStatus + ", saveCondition=" + saveCondition
				+ ", saveEnvironment=" + saveEnvironment + ", disease="
				+ disease + ", protectTime=" + protectTime
				+ ", protectMeasure=" + protectMeasure + ", protectType="
				+ protectType + ", operator=" + operator + ", protectIntell="
				+ protectIntell + ", protectLmo=" + protectLmo
				+ ", protectLogs=" + protectLogs + ", append1=" + append1
				+ ", append2=" + append2 + ", append3=" + append3 + "]";
	}
    
}